﻿<Page x:Class="JumpstartApp.Contracts.Search"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:Controls="using:JumpstartApp.Controls"
      xmlns:ViewModels="using:JumpstartApp.ViewModels"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:local="using:JumpstartApp.Contracts"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      mc:Ignorable="d">

    <Page.DataContext>
        <ViewModels:SearchViewModel />
    </Page.DataContext>

    <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
        <Controls:Silhouette x:Name="Silhouette"
                             Title="Search Results" 
                             SubTitle="{Binding SubTitle}" />
        <GridView SelectedItem="{Binding Selected, Mode=TwoWay}"
                  ItemTemplate="{StaticResource ChildTemplate}"
                  ItemsSource="{Binding Results}"
                  Padding="115,160,80,80"/>
        <Controls:BackButton />
    </Grid>
</Page>